import { fetchGet, fetchPost } from "../utils/http.js";
export const fnLogin = (param) => {
  return fetchPost("User/login", param);
};
// 短信
export const fnSendMsg = (param) => {
  return fetchPost("Base/juhe_send", param)
}
// 注册
export const fnRegister = (param) => {
  return fetchPost("User/register", param)
}

// 找回密码
export const fnForget = (param) => {
  return fetchPost("User/passUpdate", param)
}

// 修改密码
export const fnModify = (param) => {
  return fetchPost("User/passEdit", param)
}

// 注销帐户
export const fnDelUser = (param) => {
  return fetchPost('User/userback', param)
}

export const fnGetUserPhone = (param) => {
  return fetchGet('User/userback', param)
}
export default {
    fnLogin,
    fnSendMsg,
    fnRegister,
    fnForget,
    fnModify,
    fnDelUser,
    fnGetUserPhone
}
